package com.mcr.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mcr.reggie.dto.DishDto;
import com.mcr.reggie.entity.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {
    //新增菜品:(同时插入菜品表和菜品口味表)
    public void saveDishAndFlavor(DishDto dishDto);
    //根据id查询菜品信息和口味信息
    public DishDto getDishAndFlavor(Long id);
    //更新菜品信息
    public void updateDishAndFlavor(DishDto dishDto);
    //修改一个或多个菜品状态
    public void updateDishStatus(Long[] ids, Integer status);
    //删除一个或多个菜品
    public void delByIds(Long[] ids);

    Page<DishDto> getPage(int page, int pageSize, String name);

    List<DishDto> getList(Dish dish);
}
